package com.lushixiang.mybatis.maps;

import com.lushixiang.mybatis.entity.user.UserEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserMapper {

    List<UserEntity> selectUser();


    UserEntity selectUserByName(String userName);

    UserEntity selectUserByEmailAddr(String emailAddr);

    // 用户记录插入

    int insert(UserEntity userEntity);

    boolean updateUserStatusByEmailAddr(String emailAddr);

    // 更新用户密码
    boolean updateUserPasswordByEmailAddr(String emailAddr,String password);
    // 修改设置用户icon
    boolean updateUserSelectiveByEmailAddr(@Param("userEntity") UserEntity userEntity );

    // 用户销户
    public boolean userDeregist(String emailAddr);
}
